import * as axiosBase from "./request";
// 获取热门搜索简略列表
export let getSearchHot = async function () {
  let res = await axiosBase.GET(API_PORT +"/search/hot/detail");
  return res.data;
}
// 关键字模糊搜索歌曲、歌手等
export let getSearchKeyword = async function (params) {
  let res = await axiosBase.GET(API_PORT +"/search", params);
  return res.result;
}

// 获取歌单分类关键字
export let getHotTags = async function () {
  let res = await axiosBase.GET(API_PORT +"/playlist/hot");
  return res;
}
// 获取推荐歌单
export let getRecommendSongList = async function () {
  let res = await axiosBase.GET(API_PORT +"/personalized?limit=15");
  return res;
}

// 获取歌单列表
export let getTagSongList = async function (params) {
  let res = await axiosBase.GET(API_PORT +"/top/playlist/highquality", params);
  return res;
}
// 获取新歌推荐 limit=45
export let getNewMusicRecommend = async function (params) {
  let res = await axiosBase.GET(API_PORT +"/personalized/newsong", params);
  return res;
}
//获取歌单详情
// http://39.103.154.125:9876/playlist/detail?id=2409342460
export let getSongList = async function (params) {
  let res = await axiosBase.GET(API_PORT +"/playlist/detail", params);
  return res;
}
//获取Mv排行列表
export let getMvList = async function (params) {
  let res = await axiosBase.GET(API_PORT +"/top/mv", params);
  return res;
}
//获取Mv地址
// http://39.103.154.125:9876/mv/url?id=14273944
export let getMvUrl = async function (params) {
  let res = await axiosBase.GET(API_PORT +"/mv/url", params);
  return res;
}